const moment = require('moment');

console.log(moment().format('dddd')); // Wednesday

console.log(moment().format()); // 2022-04-13T11:37:08+08:00

console.log(moment().format('YYYY-MM-DD HH:mm:ss')); // 2022-04-13 11:38:57
